package com.neuedu.common.core.domain.enums;


import lombok.Getter;

@Getter
public enum ResultEnum {

    SUCCESS(200, "接口调用成功") {

    },
    UNAUTHORIZED(403, "未授权") {

    },
    FORBIDDEN(403, "没有权限访问资源") {

    },
    FAILED(500, "接口调用失败") {

    };

    private final Integer code;

    private final String message;

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

}
